import request from '@/utils/request';

/* 
事件录入列表
*/
export const eventEnterList = (query) => {
  return request({ url: '/event/input/list', method: 'get', params: query });
};
/*时间录入时间资产查询 */

export const eventEnterAssetList = (query) => {
  return request({ url: '/event/input/assetList', method: 'get', params: query });
};
/**
 * 事件录入新增
 */
export const eventEnterAdd = (data) => {
  return request({ url: '/event/input', method: 'post', data: data });
};
/**
 * 事件录入修改
 */
export const eventEnterEdit = (data) => {
  return request({ url: '/event/input', method: 'put', data: data });
};
/**
 * 事件录入删除
 */
export const eventEnterDelete = (data) => {
  return request({ url: `/event/input/${data}`, method: 'delete',data});
};

/**
 * 事件录入详情
 */
export const eventEnterDetail= (query) => {
  return request({ url: `/event/input/${query.id}`, method: 'get', params: query });
};


/* 事件处理列表 */

export const eventDisposeList = (query) => {
  return request({ url: '/event/resolve/page', method: 'get', params: query });
};

/* 事件处理 认领 */
export const eventDisposeClaim = (data) => {
  return request({ url: `/event/resolve/${data}`, method: 'post',});
};

/* 事件处理 解决 */
export const eventDisposeResove = (data) => {
  return request({ url: `/event/resolve`, method: 'post',data});
};

/** 
 * 事件分类树
 */
export const eventcalssList= (query:{}) => {
  return request({ url: `/event/tree/getTree`, method: 'get', params: query });
};


/**
 * 事件分类树 新增
 */
export const eventcalssAdd= (query:{}) => {
  return request({ url: `/event/tree`, method: 'post', data: query });
};

/**
 * 事件分类树 修改
 */
export const eventcalssEdit= (query:{}) => {
  return request({ url: `/event/tree`, method: 'put', data: query });
};


/**
 * 事件分类树 删除
 */
export const eventcalssDel= (query:{}) => {
  return request({ url: `/event/tree/${query}`, method: 'delete', data: query });
};




 

 